package com.liurq.dubboconsumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.liurq.DubboService;
import org.liurq.Person;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DubboConsumerController {

    @Reference
    DubboService dubboService;

    @RequestMapping("get_person")
    public Person getPerson(String name, int age){
        return dubboService.getPerson(name,age);
    }

}
